function abd(e) {
	console.log('true');
	for(i=0; i<=document.querySelectorAll('.ad').length; i++) {
		el = document.getElementsByClassName(e)[i];
		if(el) {
			var elp = el.parentNode;
			if(el.offsetHeight === 0) {
				var els = document.createElement('div');
				els.className = 'basic-box';
				var elsc = document.createTextNode('Hey, ad blocker user! If you found my writings useful, please consider white listing this site. Thanks :)');
				els.appendChild(elsc);
				elp.appendChild(els);
			}
		}
	}
}

function script(e) {
    var t = document.createElement("script");
    t.type = "text/javascript";
    t.async = true;
    t.src = e;
    var n = document.getElementsByTagName("head")[0];
    n.appendChild(t)
}

function loadScripts() {
	abd('ad');
    load_disqus();
	script('https://apis.google.com/js/plusone.js');
	script('https://connect.facebook.net/en_US/all.js#xfbml=1');
	script('https://platform.twitter.com/widgets.js');
	script('https://assets.pinterest.com/js/pinit.js');
}

function load_disqus() {
    var e = "templatemint";
    (function () {
        var t = document.createElement("script");
        t.type  = "text/javascript";
        t.async = true;
        t.src   = "http://" + e + ".disqus.com/embed.js";
        (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(t)
    })();
}

window.onload = loadScripts();